package com.diycode.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.diycode.utils.Entity;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author diycode
 * @since 2024-04-17
 */
public class Trains extends Entity {

    private static final long serialVersionUID = 1L;

    @TableId(type= IdType.AUTO)
    private Integer trainID;

    private String trainNumber;

    private String originStation;

    private String destinationStation;

    private String trainType;

    private Integer seatCapacity;

    public Integer getTrainID() {
        return trainID;
    }

    public void setTrainID(Integer trainID) {
        this.trainID = trainID;
    }

    public String getTrainNumber() {
        return trainNumber;
    }

    public void setTrainNumber(String trainNumber) {
        this.trainNumber = trainNumber;
    }

    public String getOriginStation() {
        return originStation;
    }

    public void setOriginStation(String originStation) {
        this.originStation = originStation;
    }

    public String getDestinationStation() {
        return destinationStation;
    }

    public void setDestinationStation(String destinationStation) {
        this.destinationStation = destinationStation;
    }

    public String getTrainType() {
        return trainType;
    }

    public void setTrainType(String trainType) {
        this.trainType = trainType;
    }

    public Integer getSeatCapacity() {
        return seatCapacity;
    }

    public void setSeatCapacity(Integer seatCapacity) {
        this.seatCapacity = seatCapacity;
    }

    @Override
    public String toString() {
        return "Trains{" +
            "trainID = " + trainID +
            ", trainNumber = " + trainNumber +
            ", originStation = " + originStation +
            ", destinationStation = " + destinationStation +
            ", trainType = " + trainType +
            ", seatCapacity = " + seatCapacity +
        "}";
    }
}
